how to rewrite a logarithm